<?php
// Include widgets/*.php
include_files_in_dir("/widgets/");

function dt_widgets_init() {
    //global $left_block_args;
    // bottom sidebar
    register_sidebar(
        array(
            'name'          => __( 'Bottom widget area', LANGUAGE_ZONE ),
            'id'            => 'bottom-widget-area',
            'description'   => __( 'Bottom block', LANGUAGE_ZONE ),
            'before_widget' => '<div class="col_1-4 widget">',
            'after_widget'  => '</div>',
            'before_title'  => '<h3>',
            'after_title'   => '</h3>'
        )
    );
    
    // right blog sidebar
    register_sidebar(
        array(
            'name'          => __( 'Blog widget area', LANGUAGE_ZONE ),
            'id'            => 'primary-widget-area',
            'description'   => __( 'Right block', LANGUAGE_ZONE ),
            'before_widget' => '',
            'after_widget'  => '<div class="spread_20"></div>',
            'before_title'  => '<h1>',
            'after_title'   => '</h1>'
        )
    );
    
    // right single blog sidebar
    register_sidebar(
        array(
            'name'          => __( 'Post widget area', LANGUAGE_ZONE ),
            'id'            => 'primary_single-widget-area',
            'description'   => __( 'Right single block', LANGUAGE_ZONE ),
            'before_widget' => '',
            'after_widget'  => '<div class="spread_20"></div>',
            'before_title'  => '<h1>',
            'after_title'   => '</h1>'
        )
    );
    
    // portfolio sidebar
    register_sidebar(
        array(
            'name'          => __( 'Portfolio widget area', LANGUAGE_ZONE ),
            'id'            => 'portfolio-widget-area',
            'description'   => __( 'Portfolio blog style right block', LANGUAGE_ZONE ),
            'before_widget' => '',
            'after_widget'  => '<div class="spread_20"></div>',
            'before_title'  => '<h1>',
            'after_title'   => '</h1>'
        )
    );
    
    // portfolio single sidebar
    register_sidebar(
        array(
            'name'          => __( 'Portfolio post widget area', LANGUAGE_ZONE ),
            'id'            => 'portfolio_lingle-widget-area',
            'description'   => __( 'Portfolio post right block', LANGUAGE_ZONE ),
            'before_widget' => '',
            'after_widget'  => '<div class="spread_20"></div>',
            'before_title'  => '<h1>',
            'after_title'   => '</h1>'
        )
    );
    
    // contact sidebar
    register_sidebar(
        array(
            'name'          => __( 'Contact widget area', LANGUAGE_ZONE ),
            'id'            => 'contact-widget-area',
            'description'   => __( 'Contact right block', LANGUAGE_ZONE ),
            'before_widget' => '',
            'after_widget'  => '<div class="spread_20"></div>',
            'before_title'  => '<h1>',
            'after_title'   => '</h1>'
        )
    );
    
    // page sidebar
    register_sidebar(
        array(
            'name'          => __( 'Page widget area', LANGUAGE_ZONE ),
            'id'            => 'page-widget-area',
            'description'   => __( 'Page right block', LANGUAGE_ZONE ),
            'before_widget' => '',
            'after_widget'  => '<div class="spread_20"></div>',
            'before_title'  => '<h1>',
            'after_title'   => '</h1>'
        )
    );
    
    // home simple page sidebar
    register_sidebar(
        array(
            'name'          => __( 'Homepage widget area', LANGUAGE_ZONE ),
            'id'            => 'home_full-widget-area',
            'description'   => __( 'Homepage right block', LANGUAGE_ZONE ),
            'before_widget' => '',
            'after_widget'  => '<div class="spread_20"></div>',
            'before_title'  => '<h1>',
            'after_title'   => '</h1>'
        )
    );
    
    // page sidebar
    register_sidebar(
        array(
            'name'          => __( 'Blog homepage widget area', LANGUAGE_ZONE ),
            'id'            => 'blog_slider-widget-area',
            'description'   => __( 'Blog homepage right block', LANGUAGE_ZONE ),
            'before_widget' => '',
            'after_widget'  => '<div class="spread_20"></div>',
            'before_title'  => '<h1>',
            'after_title'   => '</h1>'
        )
    );
}
/** Register sidebars by running megapolis_widgets_init() on the widgets_init hook. */
add_action( 'widgets_init', 'dt_widgets_init' );